package com.woniu.atms.vo.pre.buyticket;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 用户根据起止地查询班次接口输入数据视图
 */
@Getter
@Setter
public class ListWithStartEndVO {
    @NotNull(message = "起始站点关键字不能为null")
    @NotBlank(message = "起始站点关键字不能为纯空字符串")
    @Size(max = 50,min = 1,message = "起始站点关键字需在1-50字符之间")
    private String startKeyWord;
    @NotNull(message = "目的站点关键字不能为null")
    @NotBlank(message = "目的站点关键字不能为纯空字符串")
    @Size(max = 50,min = 1,message = "目的站点关键字需在1-50字符之间")
    private String endKeyWord;
}
